package com.jy.datapipeline.export.dao;

import com.jy.datapipeline.export.entity.ExpRuleModel;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface ExpRuleDao {
    public List<Map<String,Object>> findExpRuleByList(String dataSourceName,String ruleName,Integer iDisplayStart,
        Integer iDisplayLength);

    public int findExpRuleByCount(String dataSourceName,String ruleName);

    public boolean updateExpRule(ExpRuleModel erm);

    public boolean deleteByRuleId(String ruleId);
    public List<Map<String,Object>> findRuleInfoByTask(String ruleId,int status);

    Set<Integer> batchSave(List<ExpRuleModel> expRuleModel) throws Exception;

    void batchDelete(Set<Long> ids) throws Exception;

    Set<String> findExpRuleIdsByIds(Set<Long> ids);
}
